#ifndef WIN32_TITLE_BAR_H
#define WIN32_TITLE_BAR_H

#include <windows.h>

#define TBM_SETCENTER    WM_USER
#define TBM_SETRIGHT     WM_USER + 1
#define TBM_SETBKCOLOR   WM_USER + 2
#define TBM_SETTEXTCOLOR WM_USER + 3
#define SetTitleBarBkColor(hWnd, cr) SendMessage((hWnd), TBM_SETBKCOLOR, (WPARAM)(cr), 0)
#define SetTitleBarTextColor(hWnd, cr) SendMessage((hWnd), TBM_SETTEXTCOLOR, (WPARAM)(cr), 0)
#define SetTitleBarLeftText SetWindowText
#define SetTitleBarCenterText(hWnd, lpString) SendMessage((hWnd), TBM_SETCENTER, (WPARAM)(lpString), 0)
#define SetTitleBarRightText(hWnd, lpString) SendMessage((hWnd), TBM_SETRIGHT, (WPARAM)(lpString), 0)

#ifdef __cplusplus
extern "C" {
#endif
BOOL RegisterTitleBarControl(void);
#ifdef __cplusplus
}
#endif

#endif
